import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

export default new Router({
  mode: 'history',
  routes: [
    {
      path: '/',
      name: 'home',
      component: () => import('./views/home.vue'),
      // 子路由
      children: [
        {
          path: '/customer',
          name: 'customer',
          component: () => import('./views/customerlist/index.vue')
        },
        {
          path: '/logos',
          name: 'logos',
          component: () => import('./views/logoslist/index.vue')
        }
      ]
    }
  ]
})
